/*
 * @Description: 悟空软件
 * @Author: 悟空
 * @Date: 2020-06-04 11:29:14
 * @LastEditTime: 2023-08-25 18:19:57
 * @LastEditors: yang
 */

const statusValue = {
  0: '待上报',
  1: '上报审核',
  2: '上报通过',
  3: '上报驳回',
}


const positionTypeValue = {
  1: '管理岗',
  2: '专技岗',
  3: '工勤岗',
}

const positionChannelValue = {
  1: '校招',
  2: '社招',
}


const isExamValue = {
  0: '否',
  1: '是',
}

const sexValue = {
  1: '男',
  2: '女',
}

const sexOptions = Object.keys(sexValue).map(key => {
  return {
    value: Number(key),
    label: sexValue[key]
  }
})

const channelValue = positionChannelValue

const channelOptions = Object.keys(channelValue).map(key => {
  return {
    value: Number(key),
    label: channelValue[key]
  }
})

const educationValue = {
  1: '小学',
  2: '初中',
  3: '高中',
  4: '中专',
  5: '大专',
  6: '大学',
  7: '硕士研究生',
  8: '博士研究生',
  0: '无',
}

const educationOptions = Object.keys(educationValue).map(key => {
  return {
    value: Number(key),
    label: educationValue[key]
  }
})

const technicalLevelValue = {
  1: '初级',
  2: '中级',
  3: '正高级',
  4: '高级',
}

const technicalLevelOptions = Object.keys(technicalLevelValue).map(key => {
  return {
    value: Number(key),
    label: technicalLevelValue[key]
  }
})

const technologyTypeValue = {
  1: '初级工',
  2: '中级工',
  3: '高级工',
  4: '技师',
  5: '高级技师'
}

const technologyTypeOptions = Object.keys(technologyTypeValue).map(key => {
  return {
    value: Number(key),
    label: technologyTypeValue[key]
  }
})

const positionTypeOptions = Object.keys(positionTypeValue).map(key => {
  return {
    value: Number(key),
    label: positionTypeValue[key]
  }
})

const positionChannelOptions = Object.keys(positionChannelValue).map(key => {
  return {
    value: Number(key),
    label: positionChannelValue[key]
  }
})

const isExamOptions = Object.keys(isExamValue).map(key => {
  return {
    value: Number(key),
    label: isExamValue[key]
  }
})


// 计划model
export default {
  statusValue,
  positionTypeValue,
  positionChannelValue,
  isExamValue,
  positionTypeOptions,
  positionChannelOptions,
  isExamOptions,
  sexValue,
  sexOptions,
  channelValue,
  channelOptions,
  educationValue,
  educationOptions,
  technicalLevelValue,
  technicalLevelOptions,
  technologyTypeValue,
  technologyTypeOptions,
}
